package main

import (
	"github.com/gin-gonic/gin"
	"github.com/gin-gonic/gin/binding"
	"github.com/go-playground/validator/v10"
	_ "practice/inititalization"
	"practice/internal/model/validtion"
	"practice/internal/router"
)

func main() {
	r := gin.Default()
	if v, ok := binding.Validator.Engine().(*validator.Validate); ok {
		v.RegisterValidation("mobile", validtion.ValidateMobile)
	}
	router.Router(r)
	r.Run()
}
